//
//#ifndef PROJECTZ_NUSER_NCOMMAND_CS_DUNGEON_OUT_REQ_H_
//#define PROJECTZ_NUSER_NCOMMAND_CS_DUNGEON_OUT_REQ_H_
//
//#include "../../engine.h"
//
//#include "../../User.h"
//#include "../../Data.h"
//
//#include "../../NLogic/Static.h"
//
//namespace ProjectZ { namespace NCommand { namespace NMatching {
//
//class CS_DUNGEON_OUT_REQ
//{
//public:
//	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
//	{
//
//		NLogic::Space * pSpace = pUser->GetSpace();
//		if (NULL == pSpace)
//		{
//
//			return;
//		}
//
//		if (pSpace->GetData()._spaceType != NLogic::Space::SpaceType::SINGLE_DUNGEION &&
//				pSpace->GetData()._spaceType != NLogic::Space::SpaceType::PARTY_DUNGEION )
//		{
//			DEBUGLOG("CS_DUNGEON_OUT_REQ space is not single or party dungeion");
//			return;
//		}
//
//		int gid = 0;
//		int exit_map_id = 1;
//
//		PREPARE_PACKET;
//
//		pPacket->ParseMsg("%d", &gid);
//
//		pSpace->LeaveUser(pUser);
//
////		NLogic::Space * pWorld = pUser->GetOldWorldSpace();
////		if (NULL == pWorld)
////		{
////			pSpace = NLogic::Static::Instance().GETWORLDSPACETREE().begin()->second;
////		}
////
//		Player_Info & player_info = pUser->player_info;
//		pUser->player_info.x = 912;
//		pUser->player_info.y = 528;
//		pUser->player_info.degree = 90;
//
//		::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();
//		pAck->MsgCat("%d%2d%2d%2d%2d", pUser->GetGID(), exit_map_id, player_info.x, player_info.y, player_info.degree);
//		pAck->MakePacket(CMD_SC_DUNGEON_OUT_REQ);
//		pUser->Send(pAck);
//
//		//pWorld->EnterUser(pUser);
//	}
//};
//
//} /*NWorld*/ } /*NCommand*/ } /*ProjectZ*/
//
//
//#endif /* PROJECTZ_NUSER_NCOMMAND_CS_DUNGEON_OUT_REQ_H_ */
